Deposit funds
POST /api/v1/Transactions/deposit
Description
This endpoint is used to deposit funds into an account.
Tags: Transactions
URL: /api/v{version}/Transactions/deposit
ApiKey: No API key required
Content-Type: text/plain, application/json, text/json
Parameters:
-
version: string, required
-
Accept-Language: header, optional, change the default response message language from English(en) to French(fr) or English(en)
Body Parameters: -
AccountNumber: string, required, the account to deposit to
-
Amount: number, required, the amount to deposit
-
Currency: string, required, the currency of the deposit
-
TransactionRef: string, required, the reference of the deposit
Response:
-
Success, returns a CreditTransactionResponseResponse.
Error Codes: -
400: Bad Request
-
404: Not Found
Example:
JSON
POST /api/v1/Transactions/deposit
{
"AccountNumber": "123456789012",
"Amount": 100.00,
"Currency": "USD",
"TransactionRef": "123456"
}
Plain Text
HTTP/1.1 200 OK
{
"Message": "Deposit successful",
"AccountNumber": "123456789012",
"Amount": 100.00,
"Currency": "USD",
"TransactionRef": "123456"
}
/api/v1/Transactions/deposit
Headers
| Content-Type | Value |
|---|---|
| Accept-Language |
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Headers
| Content-Type | Value |
|---|---|
| Accept | text/plain |
Body (raw)
{
"recipientAccountNumber": `<string>`,
"amount": `<double>`,
"reference": `<string>`,
"narration": `<string>`,
"fee": `<double>`,
"sendersName": `<string>`,
"sendersBank": `<string>`,
"sendersAccountNumber": `<string>`
}
Response: 200
{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": {
"amount": `<double>`,
"fee": `<double>`,
"currency": `<string>`,
"status": `<string>`,
"reference": `<string>`,
"narration": `<string>`,
"trnxId": `<uuid>`
}
}
Response: 400
{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}
Response: 404
{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}
LANGUAGE
CURL REQUEST
curl --request POST \
--url /api/v1/Transactions/deposit \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!